package config

type AppConfig struct {
	ServerPort int
	AppVersion string
	Build      string

	DBUser     string
	DBPassword string
	DBHost     string
	DBPort     int
	DBName     string
}

var AppConfigInstance *AppConfig

func InitConfig() {
	AppConfigInstance = &AppConfig{
		ServerPort: 8091,
		AppVersion: "1.0.0",
		Build:      "20230701",

		DBUser:     "sunmi_dev",
		DBPassword: "_Sunmi1234.",
		DBHost:     "localhost",
		DBPort:     3306,
		DBName:     "whd_dev",
	}
}
